﻿using SXFramWork.Core.Quartz;
using SXFramWork.Service;
using System.ComponentModel;
using System.Threading.Tasks;

namespace SXFramWork.Quartz
{
    [Description("同步账户数据2")]
    public class OrganizeDataSyncTask2 : TaskAbstract
    {
        private readonly ISysUserService _userService;
        public OrganizeDataSyncTask2(ITaskLogger logger, ISysUserService sysUserService) :base(logger)
        {
            _userService = sysUserService;
        }
        public override async Task Execute(ITaskExecutionContext context)
        {
            await _userService.SyncUser();
        }
    }
}
